import wepy from 'wepy'

// 适用于公共的数据与方法
export default class mymixinMixin extends wepy.mixin {
  data = {
    qsq: "帅得很"
  }
  methods = {
    tap() {
      this.mixin = 'mixin data was changed'
      console.log('帅得很tab')
    }
  }

  onShow() {
    console.log(this.data.qsq + "show")
  }

  /**
   * 先于Onshow执行
   */
  onLoad() {
    console.log(this.data.qsq + "load")
  }
}
